.TH std::basic_ofstream::close 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::basic_ofstream::close \- std::basic_ofstream::close

.SH Synopsis
   void close();

   Closes the associated file.

   Effectively calls rdbuf()->close(). If an error occurs during operation,
   setstate(failbit) is called.

.SH Parameters

   \fI(none)\fP

.SH Return value

   \fI(none)\fP

.SH Notes

   This function is called by the destructor of basic_ofstream when the stream object
   goes out of scope and is not usually invoked directly.

.SH Example

    This section is incomplete
    Reason: no example

.SH See also

   is_open checks if the stream has an associated file
           \fI(public member function)\fP
   open    opens a file and associates it with the stream
           \fI(public member function)\fP
   close   flushes the put area buffer and closes the associated file
           \fI(public member function of std::basic_filebuf<CharT,Traits>)\fP

.SH Category:
     * Todo no example
